/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JEVEMEOREChartBox.java
 *
 * Created on Jun 21, 2011, 12:07:58 PM
 */
package jeveme;

/**
 *
 * @author ruizr
 */
public class JEVEMeIceChartBox extends javax.swing.JDialog {

    /** Creates new form JEVEMEOREChartBox */
    public JEVEMeIceChartBox(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        
        //Set First Column width larger
        oreTable.getColumnModel().getColumn(0).setPreferredWidth(200);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        oreTable = new javax.swing.JTable();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(jeveme.JEVEMeApp.class).getContext().getResourceMap(JEVEMeIceChartBox.class);
        setTitle(resourceMap.getString("Form.title")); // NOI18N
        setName("Form"); // NOI18N

        jPanel1.setName("jPanel1"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        oreTable.setAutoCreateRowSorter(true);
        oreTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {"Blue Ice", new Integer(50), new Integer(25), new Integer(1), new Integer(300), new Integer(0), new Integer(0), new Integer(0)},
                {"Thick Blue Ice", new Integer(75), new Integer(40), new Integer(1), new Integer(350), new Integer(0), new Integer(0), new Integer(0)},
                {"Dark Glitter", new Integer(500), new Integer(1000), new Integer(50), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Gelidus", new Integer(250), new Integer(500), new Integer(75), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Glare Crust", new Integer(1000), new Integer(500), new Integer(25), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"White Glaze", new Integer(50), new Integer(25), new Integer(1), new Integer(0), new Integer(0), new Integer(0), new Integer(300)},
                {"Pristine White Glaze", new Integer(75), new Integer(40), new Integer(1), new Integer(0), new Integer(0), new Integer(0), new Integer(350)},
                {"Clear Icicle", new Integer(50), new Integer(25), new Integer(1), new Integer(0), new Integer(0), new Integer(300), new Integer(0)},
                {"Enriched Clear Icicle", new Integer(75), new Integer(40), new Integer(1), new Integer(0), new Integer(0), new Integer(350), new Integer(0)},
                {"Glacial Mass", new Integer(50), new Integer(25), new Integer(1), new Integer(0), new Integer(300), new Integer(0), new Integer(0)},
                {"Smoth Glacial Mass", new Integer(75), new Integer(40), new Integer(1), new Integer(0), new Integer(350), new Integer(0), new Integer(0)},
                {"Krystallos", new Integer(100), new Integer(250), new Integer(100), new Integer(0), new Integer(0), new Integer(0), new Integer(0)}
            },
            new String [] {
                "Ice Type", "Heavy Water", "Liquid Ozone", "Strontium Clathrates", "Oxygen Isotopes", "Hydrogen Isotopes", "Helium Isotopes", "Nitrogen Isotopes"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        oreTable.setName("oreTable"); // NOI18N
        jScrollPane1.setViewportView(oreTable);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 770, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 806, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                JEVEMeOREChartBox dialog = new JEVEMeOREChartBox(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {

                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable oreTable;
    // End of variables declaration//GEN-END:variables
}
